package day16_Runnable.demo01_Runnable;
//多线程的实现方式:
//继承Thread类
//实现Runnable接口
//实现Runnable的好处
//避免了Java的单继承的局限性
//适合多个线程去同时处理同一个资源
public class Test01 {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        Thread thread = new Thread(myThread,"zs");
        Thread thread1 = new Thread(myThread,"ls");
        thread.start();
        thread1.start();
    }
}
